﻿
@{
    ViewBag.Title = "Postcode Alert";
    Layout = "~/Views/Shared/_Layout.cshtml";
 
}


<div class="container-fluid">
    <div class="page-header"></div>
    <div class="row-fluid">
        <div class="span12">
            <ul class="tabs tabs-inline tabs-top orderdetail-task-tabs margin0">
                <li class="active"><a href="#heldorder" data-toggle="tab">Held Order</a></li>
                <li><a href="#postcodealert" data-toggle="tab">Postcode Alerts</a></li>
            </ul>
            <div class="tab-content padding tab-content-inline tab-content-bottom orderdetail-task-tabs-content">
                <div class="active tab-pane" id="heldorder">
                    <form action="/StockControl/PostcodeAlerts" method="post" id="fr-postcode" class="margin0">
                        <div class="row-fluid">
                            <div class="span8"></div>
                            <div class="span3">
                                @Html.DropDownList("groupByID", null, new { @class = "input-block-level" })
                            </div>
                            <div class="span1">
                                <input type="submit" name="" value="Reload" class="btn btn-primary" />
                            </div>
                        </div>
                    </form>
                    <div class="row-fluid">
                        <div class="span12" id="lsheldorder">
                            <input type="hidden" name="helditemselected" value="" />
                            <div class="overflow-auto" id="loadheldorder">
                                @Html.Action("LoadHeldOrder", "StockControl")

                            </div>
                        </div>
                    </div>

                </div>
                <div class=" tab-pane" id="postcodealert">
                    <div class="fieldset">
                        <div class="legend"><span>Search Postcodes</span></div>
                        <form action="/" id="fr-SearchPostcode" method="post">
                            <div class="row-fluid">
                                <div class="span7">

                                    @for (int i = 97; i < 123; i++)
                                    {
                                        var letter = Convert.ToChar(i).ToString().ToUpper();
                                        <a href="javascript:" onclick="LoadPostcodeAlert('@letter')" class="charcode">@letter</a>
                                    }
                                </div>
                                <div class="span3">
                                    <input type="text" id="SearchPostcode" class="input-block-level" value="" />
                                </div>
                                <div class="span1">

                                    <input type="submit" name="" id="btn-SearchPostcode" value="Search" class="btn btn-primary" />

                                </div>
                                <div class="span1">
                                    <input type="button" id="btn-saveallpostcode" name="" value="Save All" class="btn btn-success" />
                                </div>
                            </div>
                        </form>
                        <div class="row-fluid">
                            <div class="span12" id="postcode-item"></div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

</div>
